package com.peaksport.framework.base.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

import com.peaksport.pkms.permit.entity.UserEntity;

import lombok.Getter;
import lombok.Setter;

@SuppressWarnings("serial")
@MappedSuperclass
@Getter
@Setter
public abstract class ObjectBaseEntity extends CoreBaseEntity {
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "FCreatorID")
	private UserEntity creator;
	@Column(name="FCreateTime")
	//@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "FLastUpdateUserID")
	private UserEntity lastUpdateUser;
	@Column(name="FLastUpdateTime")
	//@Temporal(TemporalType.TIMESTAMP)
	private Date lastUpdateTime;
	
	@Column(name="FControlUnitID")
	private String cuId;
}
